<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<jsp:include page = "../../metadatos.jsp" flush = "True" />
<html>
    <head>
        <title>Administrador de Pedidos</title>
    </head>
    <body>
        <div class="wrapper">
            <header class="header">
                <img src="./resources/Logo.PNG" />
            </header><!-- .header-->
            <!-- .Navigation Menu -->
            <jsp:include page = "../../menuNavegacion.jsp" flush = "True" />
            <main class="content">
                <form method="post"  class="formee">
                    <fieldset>
                        <legend>ENTREGADOS</legend>
                        <div class="grid-12-12">
                            <div class="grid-4-12">
                                <input  type="button" value="Regresar" onclick="location.href='./Logistica?action=principal'" />
                            </div>
                            <table class="bordered" width="100%">
                                <thead>
                                    <tr style="font-size:12px;">
                                        <th>ID PEDIDO</th>
                                        <th>ID CLIENTE</th>
                                        <th>ESTADO DEL PEDIDO</th>
                                    </tr>
                                </thead>
                                <c:forEach items="${principalTarry.pedidosEntregados}" var="p">
                                    <tr style="font-size:12px;">
                                        <td><c:out value="${p.idPedidido}"/></td> 
                                        <td><c:out value="${p.idCliente}"/></td> 
                                        <td >
                                            <c:if test="${p.banderaInforme==1}">EN PROCESO</c:if>
                                            <c:if test="${p.banderaInforme==2}">SURTIDO</c:if>
                                            <c:if test="${p.banderaInforme==3}">ENVIADO</c:if>
                                            <c:if test="${p.banderaInforme==4}">RECIBIDO</c:if>
                                            <c:if test="${p.banderaInforme==5}">CANCELADO</c:if>
                                            </td>                                   
                                        </tr>
                                </c:forEach>
                            </table>
                        </div>
                    </fieldset>
                </form>
            </main>
        </div>
    </body>
</html>
<jsp:include page = "../../pie.jsp" flush = "True" />